package cn.player.view;

import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import cn.player.R;

public class CommentDialog extends AlertDialog {
    private TextView textview;

    public CommentDialog(Context context) {
        super(context);
    }

    public CommentDialog(Context context, int theme) {

        super(context, theme);
    }

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.textdialog);
        init();
    }

    private void init() {
        textview = (TextView) findViewById(R.id.textView1);
    }

    public void disposeDialog() {
        this.dismiss();
    }

    public void changeTextView(String content) {
        this.textview.setText(content);
    }
}
